<?php if (!defined('THINK_PATH')) exit(); if(is_array($tree)): $i = 0; $__LIST__ = $tree;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><tr>
            <td>
                <form action="<?php echo U('edit');?>" method="post">
                <input type="hidden" name="id" value="<?php echo ($list["id"]); ?>">
                <input type="text" name="sort" class="form-control input-sm input-s-sm" value="<?php echo ($list["sort"]); ?>">
                </form>
            </td>
            <td><?php echo ($list['allow_publish']?'是':'否'); ?></td>
            <td>
                <form action="<?php echo U('edit');?>" method="post">
                <input type="hidden" name="id" value="<?php echo ($list["id"]); ?>">
                <input type="text" name="title" class="form-control input-sm" value="<?php echo ($list["title"]); ?>">
                </form>
            </td>
            <td>
                <div class="btn-group pull-right" role="group">
                <a class="btn btn-default btn-sm" title="添加子分类" href="<?php echo U('add?pid='.$list['id']);?>">添加子分类</a>
                <a class="btn btn-default btn-sm" title="编辑" href="<?php echo U('edit?id='.$list['id'].'&pid='.$list['pid']);?>">编辑</a>
                <a class="btn btn-default btn-sm" title="<?php echo (show_status_op($list["status"])); ?>" href="<?php echo U('setStatus?ids='.$list['id'].'&status='.abs(1-$list['status']));?>" class="ajax-get"><?php echo (show_status_op($list["status"])); ?></a>
                <a class="btn btn-default btn-sm" title="删除" href="<?php echo U('remove?id='.$list['id']);?>" class="confirm ajax-get">删除</a>
                <a class="btn btn-default btn-sm" title="移动" href="<?php echo U('operate?type=move&from='.$list['id']);?>">移动</a>
                <a class="btn btn-default btn-sm" title="合并" href="<?php echo U('operate?type=merge&from='.$list['id']);?>">合并</a>
                </div>

            </td>
     
  
            
            
    
        </tr>
     
        <tr>
    
         
        <?php if(is_array($list['_'])): foreach($list['_'] as $key=>$list): ?><tr>  
               <td>
                <form action="<?php echo U('edit');?>" method="post">
                <input type="hidden" name="id" value="<?php echo ($list["id"]); ?>">
                <input type="text" name="sort" class="form-control input-sm input-s-sm" value="<?php echo ($list["sort"]); ?>">
                </form>
            </td>
              <td><?php echo ($list['allow_publish']?'是':'否'); ?></td>
            <td>
                <form action="<?php echo U('edit');?>" method="post">
                <input type="hidden" name="id" value="<?php echo ($list["id"]); ?>">
                <span class="tab-sign"></span><input type="text" class="texts" name="title" value="<?php echo ($list["title"]); ?>">
                </form>
            </td>
            <td>
                <div class="btn-group pull-right" role="group">
                <a class="btn btn-default btn-sm" title="添加子分类" href="<?php echo U('add?pid='.$list['id']);?>">添加子分类</a>
                <a class="btn btn-default btn-sm" title="编辑" href="<?php echo U('edit?id='.$list['id'].'&pid='.$list['pid']);?>">编辑</a>
                <a class="btn btn-default btn-sm" title="<?php echo (show_status_op($list["status"])); ?>" href="<?php echo U('setStatus?ids='.$list['id'].'&status='.abs(1-$list['status']));?>" class="ajax-get"><?php echo (show_status_op($list["status"])); ?></a>
                <a class="btn btn-default btn-sm" title="删除" href="<?php echo U('remove?id='.$list['id']);?>" class="confirm ajax-get">删除</a>
                <a class="btn btn-default btn-sm" title="移动" href="<?php echo U('operate?type=move&from='.$list['id']);?>">移动</a>
                <a class="btn btn-default btn-sm" title="合并" href="<?php echo U('operate?type=merge&from='.$list['id']);?>">合并</a>
                </div>

            </td>
            </tr><?php endforeach; endif; ?>

        
 </tr><?php endforeach; endif; else: echo "" ;endif; ?>